package examples.webstore.interceptor;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import edu.scsu.csci.IInterceptor;
import edu.scsu.csci.interceptor.EInterceptorFlow;


/**
 * <p> Intercepts a request and records the user actions.	
 * 
 * @author Maqbool Khan
 * @since jdk 1.5
 * @see
 */
public class Audit implements IInterceptor<Object> {

	public EInterceptorFlow preProcess(Object object, ServletRequest request, ServletResponse response) {
		//TODO: Add request info to the audit log
		return EInterceptorFlow.SKIP_POST_PROCESSING;
	}

	public EInterceptorFlow postProcess(Object object, ServletRequest request, ServletResponse response) {
		//would be skipped because preProcess returned SKIP_POST_PROCESSING
		return EInterceptorFlow.CONTINUE;
	}

}

